package com.codinglives.demoall.mulds.controller;



import com.codinglives.demoall.mulds.mapper.radar.UserMapper;
import com.codinglives.demoall.mulds.mapper.sys.SysConfMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @Autowired
    private UserMapper userMapper;

    @Autowired
    private SysConfMapper sysConfMapper;

    @GetMapping("/users")
    public Object listUsers() {
       return  userMapper.selectAll();
    }

    @GetMapping("/configs")
    public Object listBooking() {
        return  sysConfMapper.selectAll();
    }


}
